home *** CD-ROM | disk | FTP | other *** search
- /*
- File: IncomingHFSLetter.h
-
- Contains:
-
- Written by: David Akhond
-
- Copyright: © 1995 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
-
- To Do:
-
-
-
- //--------------------------------------------------------------------------------------------------------------------
- //
- // Incoming Letter Format
- //
- // An incoming letter consists of 1 to 3 parts:
- //
- // 1. The LetterFolder - mandatory - the folder that is parent to the letter parts.
- // Child of Preferences:HFSGate:Incoming
- //
- // 2. The LetterFile - optional - the file that holds the text for letter recipients and text and the style
- // resource. It is always
- // Type: TEXT
- // Creator: ttxt
- // SimpleText files are type TEXT and creator ttxt.
- // if there is no letter file, there is no letter.
- //
- // 3. The EnclosureFolder - optional - any other file or folder is considered an enclosure
- //
- //
- // /////////////////////////////////////////////////////////////////////////////////////
- // // From: fromRecipient
- // // To: toRecipient1,toRecipient2,toRecipient3
- // // CC: ccRecipient1,ccRecipient2,ccRecipient3
- // // BCC: bccRecipient1,bccRecipient2,bccRecipient3
- // //
- // // Subject: subjectString
- // //
- // // (MessageText -
- // // All following
- // // text is the message
- // // text.)
- // /////////////////////////////////////////////////////////////////////////////////////
- //
- // All recipients of each type must fit on one line
- //
- //--------------------------------------------------------------------------------------------------------------------
-
- */
-
-
-
- #ifndef __IncomingHFSLetter__
- #define __IncomingHFSLetter__
-
- class TMSAMSlot;
-
- #ifndef __FILES__
- #include "Files.h"
- #endif
-
- #ifndef __MEMORY__
- #include "Memory.h"
- #endif
-
- #ifndef __FileUtils__
- #include "Files.h"
- #endif
-
- #ifndef __OCE__
- #include "OCE.h"
- #endif
-
- #ifndef __OCEMESSAGING__
- #include "OCEMessaging.h"
- #endif
-
- #ifndef __OCEMAIL__
- #include "OCEMail.h"
- #endif
-
- #ifndef __STRINGS__
- #include "Strings.h"
- #endif
-
- #ifndef __ALetter__
- #include "ALetter.h"
- #endif
-
-
- #ifndef __IncomingHFSStream__
- #include "IncomingHFSStream.h"
- #endif
-
-
- //-----------------------------------------------------------
-
-
-
- class TIncomingHFSLetter {
-
- public:
- TIncomingHFSLetter();
- ~TIncomingHFSLetter();
-
- void IIncomingHFSLetter(TMSAMSlot* theSlot, CFolder* theLetterFolder);
-
- void LetterIn();
-
- void LetterFile();
-
- void LetterContents();
-
- void LetterTimeStamp();
-
- void LetterRecipients();
-
- void ToLetterRecipients();
- void CCLetterRecipients();
- void BCCLetterRecipients();
-
- void LetterSubject();
-
- void LetterBody();
-
- void LetterPlainTextSegments();
- void LetterStyleTextSegments();
-
- void LetterPICTSegments();
- void LetterMOOVSegents();
- void LetterSoundSegments();
-
- void LetterEnclosures();
-
- private:
-
- TMSAMSlot* fMSAMSlot;
- CFolder* fLetterFolder;
- CFile* fLetterFile;
-
- CIncomingHFSStream* fIncomingStream;
- TIncomingALetter* fALetter;
-
- MailTime fMailTime;
-
- };
-
-
-
-
- #endif